/** @format */

import { BaseDao } from '../dao/base.dao'
import { JdBaseDao } from '../dao/base.dao.jd'
import { WxBaseDao } from '../dao/base.dao.wx'

/**
 * 根据平台获取baseDao
 * @param platform
 */
export const getBaseDao = (platform: string) => {
  if (platform === 'jd' || platform === 'h5') {
    return JdBaseDao
  }

  if (platform === 'wx') {
    return WxBaseDao
  }
  return BaseDao
}
